<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<title>数据库信息-数据管理-{$site.BACK_NAME}</title>
<include file="Public:jscss"/>
</head>
<body>
<div class="wrap">
 <include file="Public:head"/>
 <div class="mainBody">
  <include file="Public:left"/>
  <div id="Right">
   <div class="Item hr">
    <span class="fr">数据库中共有{$tables}张表，共计{$total}</span>
    <div class="current">数据库表结构列表</div>
   </div>
   <form action="{:U('Data/backup')}" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
     <thead>
      <tr>
       <td width="90"><label><input name="" class="cfz_choose_all" type="checkbox"/> 全选</label> <label><input name="" class="cfz_unset_all" type="checkbox"/> 反选</label></td>
       <td>表名</td>
       <td>表用途</td>
       <td>记录行数</td>
       <td>引擎类型</td>
       <td>字符集</td>
       <td>表大小</td>
      </tr>
     </thead>
     <tbody>
      <volist name="list" id="tab">
      <tr align="center">
       <td><input type="checkbox" name="table[]" value="{$tab.Name}"/></td>
       <td align="left">{$tab.Name}</td>
       <td align="left">{$tab.Comment}</td>
       <td>{$tab.Rows}</td>
       <td>{$tab.Engine}</td>
       <td>{$tab.Collation}</td>
       <td>{$tab.size}</td>
      </tr>
      </volist>
     </tbody>
    </table>
   </form>
   <div class="commonBtnArea">
    <button class="btn cfz_submit">备份所选</button>
   </div>
  </div>
 </div>
</div>
<div class="clear"></div>
<include file="Public:foot"/>
<script type="text/javascript">
$(function(){
	//备份所选
	$(".cfz_submit").click(function(){
		if($("tbody input[type='checkbox']:checked").size()==0){
			$.jBox.tip('请先选择你要备份的数据库表吧', 'info');
			return false;
		}
		if($(this).data("busy") == 1){
			$.jBox.tip('已提交，系统在处理中...', 'info');
		}else{
			$(this).data("busy",1).html("处理中...");
			commonAjaxSubmit();
		}
	});
});
</script>
</body>
</html>